package com.test.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;
import com.test.listener.MyListener;

public class MyInterceptor3 extends MethodFilterInterceptor {

	@Override
	protected String doIntercept(ActionInvocation invocation) throws Exception {
		
		invocation.addPreResultListener(new MyListener());
		System.out.println("my interceptor3");
		String result =invocation.invoke();
		System.out.println("after interceptor3, finished");
		return result;
	}

}
